package com.blustreaksw.cyclecoach.history;

import java.util.Date;
import java.util.UUID;

public class WorkoutLogEntry {
	private UUID mId;
	private int mSessionId;
    private String mTitle;
    private Date mDate;
    private long mTimeElapsed;
    private int mWattsAvg;
    private int mWattsMax;
    private int mNominalPower;
    private double mIFactor;
    private double mTSS;
    private int mHeartRateAvg;
    private int mHeartRateMax;
    private int mCadenceAvg;
    private int mCadenceMax;
    private double mSpeedAvg;
    private double mSpeedMax;
    private double mDistanceTraveled;
    private int mCaloriesBurned;
    private int mLogEntryNumber;
    private int mLogEntryCount;

    public WorkoutLogEntry() {
        mId = UUID.randomUUID();
        mDate = new Date();
        mSessionId = -1;
        mTitle = new String("");
        mTimeElapsed = 0;
        mWattsAvg = 0;
        mWattsMax = 0;
        mNominalPower = 0;
        mIFactor = 0;
        mTSS = 0;
        mHeartRateAvg = 0;
        mHeartRateMax = 0;
        mCadenceAvg = 0;
        mCadenceMax = 0;
        mSpeedAvg = 0;
        mSpeedMax = 0;
        mDistanceTraveled = 0;
        mCaloriesBurned = 0;
        mLogEntryCount = 0;
    }

    @Override
    public String toString() {
        return mTitle;
    }

    public UUID getId() {
        return mId;
    }
    
    public int getSessionId() {
    	return mSessionId;
    }
    
    public void setSessionId(int sessionId) {
    	mSessionId = sessionId;
    }

	public String getTitle() {
		return mTitle;
	}

	public void setTitle(String title) {
		mTitle = title;
	}

	public Date getDate() {
		return mDate;
	}

	public void setDate(Date date) {
		mDate = date;
	}

	public long getTimeElapsed() {
		return mTimeElapsed;
	}

	public void setTimeElapsed(long timeElapsed) {
		mTimeElapsed = timeElapsed;
	}

	public int getWattsAvg() {
		return mWattsAvg;
	}

	public void setWattsAvg(int wattsAvg) {
		mWattsAvg = wattsAvg;
	}

	public int getWattsMax() {
		return mWattsMax;
	}

	public void setWattsMax(int wattsMax) {
		mWattsMax = wattsMax;
	}

	public int getNominalPower() {
		return mNominalPower;
	}

	public void setNominalPower(int nominalPower) {
		mNominalPower = nominalPower;
	}

	public double getIFactor() {
		return mIFactor;
	}

	public void setIFactor(double iFactor) {
		mIFactor = iFactor;
	}

	public double getTSS() {
		return mTSS;
	}

	public void setTSS(double tSS) {
		mTSS = tSS;
	}

	public int getHeartRateAvg() {
		return mHeartRateAvg;
	}

	public void setHeartRateAvg(int heartRateAvg) {
		mHeartRateAvg = heartRateAvg;
	}

	public int getHeartRateMax() {
		return mHeartRateMax;
	}

	public void setHeartRateMax(int heartRateMax) {
		mHeartRateMax = heartRateMax;
	}

	public int getCadenceAvg() {
		return mCadenceAvg;
	}

	public void setCadenceAvg(int cadenceAvg) {
		mCadenceAvg = cadenceAvg;
	}

	public int getCadenceMax() {
		return mCadenceMax;
	}

	public void setCadenceMax(int cadenceMax) {
		mCadenceMax = cadenceMax;
	}

	public double getSpeedAvg() {
		return mSpeedAvg;
	}

	public void setSpeedAvg(double speedAvg) {
		mSpeedAvg = speedAvg;
	}

	public double getSpeedMax() {
		return mSpeedMax;
	}

	public void setSpeedMax(double speedMax) {
		mSpeedMax = speedMax;
	}

	public double getDistanceTraveled() {
		return mDistanceTraveled;
	}

	public void setDistanceTraveled(double distanceTraveled) {
		mDistanceTraveled = distanceTraveled;
	}

	public int getCaloriesBurned() {
		return mCaloriesBurned;
	}

	public void setCaloriesBurned(int caloriesBurned) {
		mCaloriesBurned = caloriesBurned;
	}
	
	public int getLogEntryNumber() {
		return mLogEntryNumber;
	}
	
	public void setLogEntryNumber(int logEntryNumber) {
		mLogEntryNumber = logEntryNumber;
	}

	public int getLogEntryCount() {
		return mLogEntryCount;
	}

	public void setLogEntryCount(int logEntryCount) {
		mLogEntryCount = logEntryCount;
	}
    
}
